package com.sxfq.loansupermarket.backsystem.modular.base;


import com.baomidou.mybatisplus.plugins.Page;

import java.util.List;
import java.util.Map;

/**
 * Created by DIY on 2017/5/25.
 */
public interface BaseService<T,Tq,PK> {

    public Long Insert(T t) throws Exception;

    public boolean DeleteByPk(PK pk) throws Exception;

    public boolean Update(T t) throws Exception;

    public T selectByPk(PK pk) throws Exception;

    public T selectByModel(Tq tq) throws Exception;

    public T selectBySelf(T t) throws Exception;

    public List<T> selectListByModel(Tq tq) throws Exception;

    public Long selectCountByQueryMap(Tq tq);

    public List<T> selectPageListByQueryMap(Tq tq)throws Exception;

    public List<Map<String, Object>>  selectPageListByQueryGetMap(Page<Tq> page, Tq tq)throws Exception;
}
